package com.ronghui.cash.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wiki
 * @since 2017-12-06
 */
@TableName("rule_loan")
public class RuleLoan extends Model<RuleLoan> {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一Id
     */
	private Long id;
    /**
     * 借款服务状态service_status：1：上线借款服务，0：关闭借款服务
     */
	@TableField("service_status")
	private Integer serviceStatus;
    /**
     * 借款金额:多个使用逗号隔开
     */
	private String money;
    /**
     * 借款期限，多个使用逗号隔开
     */
	@TableField("time_limit")
	private String timeLimit;
    /**
     * 多次借款:0:再次借款时，需要先还清上一笔借款,1:再次借款时，不需要先还清上一笔借款
     */
	@TableField("many_times_status")
	private Integer manyTimesStatus;
    /**
     * 还款方式：1:砍头息（7天为一个周期）
     */
	@TableField("return_type")
	private Integer returnType;
    /**
     * 日利率,单位为‰
     */
	@TableField("day_rate")
	private BigDecimal dayRate;
    /**
     * 逾期利率：单位为‰
     */
	@TableField("overdue_rate")
	private BigDecimal overdueRate;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private String createTime;
    /**
     * 更新时间
     */
	@TableField("update_time")
	private String updateTime;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getServiceStatus() {
		return serviceStatus;
	}

	public void setServiceStatus(Integer serviceStatus) {
		this.serviceStatus = serviceStatus;
	}

	public String getMoney() {
		return money;
	}

	public void setMoney(String money) {
		this.money = money;
	}

	public String getTimeLimit() {
		return timeLimit;
	}

	public void setTimeLimit(String timeLimit) {
		this.timeLimit = timeLimit;
	}

	public Integer getManyTimesStatus() {
		return manyTimesStatus;
	}

	public void setManyTimesStatus(Integer manyTimesStatus) {
		this.manyTimesStatus = manyTimesStatus;
	}

	public Integer getReturnType() {
		return returnType;
	}

	public void setReturnType(Integer returnType) {
		this.returnType = returnType;
	}

	public BigDecimal getDayRate() {
		return dayRate;
	}

	public void setDayRate(BigDecimal dayRate) {
		this.dayRate = dayRate;
	}

	public BigDecimal getOverdueRate() {
		return overdueRate;
	}

	public void setOverdueRate(BigDecimal overdueRate) {
		this.overdueRate = overdueRate;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
